package cn.ivicar.iov.service.impl;

import cn.ivicar.iov.dao.ExpendFlowInfoDao;
import cn.ivicar.iov.entity.ExpendFlowInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ExpendFlowInfoService {

    @Autowired
    private ExpendFlowInfoDao mapper;

    public int saveExpendFlowInfo (ExpendFlowInfo info) {
        return mapper.save(info);
    }

    public int updateExpendFlowInfo (ExpendFlowInfo info) {
        return mapper.update(info);
    }

    public List<ExpendFlowInfo> findExpendFlowInfoById (String iccid) {
        return mapper.findById(iccid);
    }

    public List<ExpendFlowInfo> findAllExpendFlowInfo () {
        List<ExpendFlowInfo> list = new ArrayList<ExpendFlowInfo>();
        list = mapper.findAll();
        return list;
    }





}
